
#ifndef _MAINWINDOW_H_
#define _MAINWINDOW_H_

#include <BTextEdit>
#include <BComboBox>
#include <BLineEdit>
#include <BTreeWidget>
#include <BTableWidget>
#include <BMainWindow>
#include <BColorDialog>

using namespace BWE;

class MainWindow : public BMainWindow
{
public:
	MainWindow();
	~MainWindow();

	void applySheet();

protected:
	void procCurrent(BObject* object, const BValue& value);
	void procApply(BObject* object, const BValue& value);
	void procSave();
	void procLoad();
	void procItemClicked(BObject* object, const BValue& value);

private:
	BWidget*			_board;
	BWidget*			_editer;

	BComboBox*			_fontComboBox;
	BLineEdit*			_fontNameEdit;
	BTreeWidget*		_treeWidget;
	BButton*			_applyButton;
	BButton*			_saveButton;
	BButton*			_loadButton;
	BTextEdit*			_textEdit;

	BColorDialog*		_colorDialog;
};

#endif